package com.xhwl.logistics.service.cent.iot;


import com.alibaba.fastjson.JSONObject;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.logistics.query.iot.IotDeviceQuery;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;


/**
 * iot中台服务feign
 */
@FeignClient(value = "devicecore-webapi",url = "https://cent.xymind.net:19019/devicecore-webapi/")
public interface ICentDeviceCoreService {

    /**
     * 通过产品获取设备列表数据
     * @return
     */
    @RequestLine(value = "POST /devicecore/v1/list")
    ResultJson listDevice(IotDeviceQuery query);


    /**
     * 获取设备详情
     * @param query
     * @return
     */
    @RequestLine(value = "POST /devicecore/v1/detail")
    JSONObject detail(IotDeviceQuery query);
}
